package cn.edu.zafu.bigdata.x.zhaobolei.Forth;

public class TestStudentGradeManager {
    public static void main(String[] args) {
        StudentGradeManager manager = new StudentGradeManager();
        manager.addStudent("TLC", 85);
        manager.addStudent("XJJ", 95);
        manager.addStudent("CZY", 82);

        int TLCGrade = manager.getGrade("TLC");
        System.out.println("TLC的成绩：" + TLCGrade);
        int XJJGrade = manager.getGrade("XJJ");
        System.out.println("XJJ的成绩：" + XJJGrade);
        int CZYGrade = manager.getGrade("CZY");
        System.out.println("CZY的成绩：" + CZYGrade);

        manager.removeStudent("CZY");
        int CZYGradeRemoving = manager.getGrade("CZY");
        System.out.println("删除CZY后查询CZY的成绩：" + CZYGradeRemoving);
    }
}
